package com.stroke.resources;

import com.stroke.graphics.Animation;
import com.stroke.resources.loaders.GraphicResourcesLoader;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

/**
 * Author: Igor Bubelov
 * Date: 3/13/11 5:33 PM
 */
public class GraphicResources {
    private static Map<String, Animation> resources = new HashMap<String, Animation>();

    private GraphicResources() { }

    public static void load(File configFile) {
        resources = GraphicResourcesLoader.load(configFile);
    }

    public static Animation get(String name) {
        return resources.get(name);
    }
}